<?php
namespace app\shop\validate;
use think\Validate;
class Company extends Validate
{
    protected $rule = [
        'title' => 'require',
        'address' => 'require',
        'tel' => 'require'
    ];
    protected $message = [
        'title.require' => '请输入公司名称',
        'address.require' => '请输入公司地址',
        'tel.require' => '请输入联系电话'
    ];
    protected $scene = [
        'save' => ['title', 'address', 'tel']
    ];
}